﻿using Microsoft.Practices.Composite.Modularity;
using Microsoft.Practices.Composite.UnityExtensions;
using System.Windows;

namespace APJunktion.Scoreboard
{
    class Bootstrapper : UnityBootstrapper
    {
        protected override DependencyObject CreateShell()
        {
            Shell shell = new Shell();
            shell.Show();
            return shell;
        }

        protected override IModuleEnumerator GetModuleEnumerator()
        {
            ConfigurationStore store = new ConfigurationStore();
            return new ConfigurationModuleEnumerator(store);
        }
        //protected override IModuleEnumerator GetModuleEnumerator()
        //{
        //    return new DirectoryLookupModuleEnumerator(@".\Modules");
        //}
    }
}
